#ifndef LOOPSCONTROLLER_H
#define LOOPSCONTROLLER_H

#include "Game.h"
#include "System.h"

class GameBase;

class LoopsController
{
public:
	LoopsController();
	~LoopsController();

    void Run (System *system, Game *game, Renderer *renderer);

private:
    static const int m_TICK_TIME = 20;
	static const int m_MAX_LOOPS = 5;

    int m_LoopCounter;
	int m_TimeOnLoopBegin;
	int m_TimeCurrent;

	bool m_WasUpdate;
};

#endif // LOOPSCONTROLLER_H
